22.03.09 - Direct Methods
- Cramers Method requires the calculation of 1 determinant of a order matrix and determinate of order matrices
- Means elementary operations
- Need to find alternative methods as takes too long
Theoretical Foundations of Direct Methods
Elementary Row Operations
- : Swap of two rows and
- : Multiplication of a row by a scalar
- : Substitution of a row by the sum of the row to another row :
Equivalent Matrices and Equivalent Systems
Equivalent Matrices: Apply the elementary row operations on , obtain new matrix .
Equivalent Systems: 2 systems of linear equations in the same variables: and . These two systems are equivalent if they have the same solutions
Consider a system of linear equations in variables . Let be the complete matrix associated with this system. If another system of linear equations is associated with a complete matrix equivalent to , then the two systems are equivalent
- : The swap of two rows, the equations of the system are swapped, no effect on the solution of the system
- : Same solutions, modified systems is equivalent to the original one
- : After operation, the modified system is equivalent in solutions to the original one
Direct Methods
Direct methods are methods for solving systems of linear equations by manipulating the original matrix to produce an equivalent system that can be easily solved. A typical manipulation is the transformation of a system of linear equation into triangular system
Gaussian Elimination
- Construct the complete matrix
- Apply the elementary row operations to obtain a staircase complete matrix and triangular incomplete matrix, that is we add rows to obtain a null element in the desired position
- Write down the new system of linear equations
- Solve the equations of the system and use the result to solve the
- Continue recursively until the first equation
To obtain the matrix would do: As it keeps going on, it gets longer and longer, to create a matrices with leading zeros
Dan Method: This completes the first 2 rows and first column. Then have to increase m, to do second column
LU factorisation
Direct method that transforms a Matrix into a matrix product where is a lower triangular matrix having the diagonal elements all equal to 1 and is an upper triangular matrix Pose solve at first the triangular system and then extract from the triangular system Does not alter the vector of known terms .
If working with non singular matrix, then split any matrix into a product such that . If non-singular matrix and is square, and has det of 0, then lower traingular matrix having all the diagonal elements equal to 1 and upper triangular matrix such that
Equivalence of Gaussian elimination and LU factorisation
- Gaussian elimination and LU factorisation are both direct methods
- They are not identical but they are equivalent
- Whilst performing the algorithm the LU factorisation is implicitly performed
- Both Gaussian elimination and LU factorisation have a lower complexity than theoretical methods
- The complexity is in the order of operations
Short introduction to Iterative Methods
Jacobi's Method - Starts from an initial guess , iteratively apply some formulas to detect the solution of the system. Unlike direct methods that converge to the theoretical solution in a finite time, iterative methods are approximate since they converge, under some conditions